<template>
  <a-select :label-in-value="typeof value !== 'string'" :value="value" @change="handleChange">
    <a-select-option value="1">
      权重1
    </a-select-option>
    <a-select-option value="2">
      权重2
    </a-select-option>
    <a-select-option value="3">
      权重3
    </a-select-option>
    <a-select-option value="4">
      权重4
    </a-select-option>
    <a-select-option value="5">
      权重5
    </a-select-option>
    <a-select-option value="6">
      权重6
    </a-select-option>
    <a-select-option value="7">
      权重7
    </a-select-option>
    <a-select-option value="8">
      权重8
    </a-select-option>
  </a-select>
</template>

<script>

export default {
  name: 'select-ties',
  props: {
    value: {
      required: true,
    },
  },
  methods: {
    handleChange (value) {
      this.$emit('change', value)
    },
  },
  model: {
    prop: 'value',
    event: 'change'
  }
}
</script>
